package com.zjxh.zjxh.common;

import java.io.Serializable;
import java.time.LocalDateTime;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author: Oyp
 * @date: 2021/3/17 on 10:35 上午
 * @desc:
 */
@Data
@Accessors(chain = true)
public class SysOperationLogReq implements Serializable {

  private static final long serialVersionUID = 1303070982215171394L;

  @Size(min = 1, max = 50)
  private String moduleName;

  @Size(min = 1, max = 50)
  private String apiDesc;

  @Size(min = 1, max = 40)
  private String ip;

  @Size(min = 1, max = 200)
  private String requestUri;

  @Size(min = 1, max = 20)
  private String requestMethod;

  private int timeCost;

  @Size(min = 1, max = 10)
  private String code;

  @Size(min = 1, max = 50)
  private String msg;

  @Size(min = 1, max = 20)
  private String userId;

  @Size(min = 1, max = 20)
  private String username;

  private LocalDateTime createAt;
}
